package protocal;

public interface IMessage {

	/**
	 * 转成byte数组
	 * @return
	 */
	public byte[] toData();
	
	/**
	 * 解析byte数组
	 * @return
	 */
	public boolean fromData(byte[] data);
	
}
